﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SnowwhiteSkill : SkillBase
{

    public GameObject appleObject;
    public GameObject apple;

    public override void Cast()
    {
        if (!isInCooldown())
        {
            lastCastTime = Time.time;
            StartCoroutine(SkillCountdown());
        }
    }

    public override void skillStart()
    {
        apple = Instantiate(appleObject, transform.position, transform.rotation);
        apple.GetComponent<PoisonApple>().owner = this.gameObject;
    }
    public override void skillEnd()
    {
        Destroy(apple);

    }

    // Start is called before the first frame update
    void Start()
    {
    }

    // Update is called once per frame
    void Update()
    {

    }
}
